home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / dark_brown_eyes.swf / scripts / frame_3 / DoAction.as
Text File  |  2007-09-26  |  2KB  |  86 lines

  1. stop();
  2. replay_bt.onRollOver = function()
  3. {
  4.    so1.start(0,1);
  5.    this.gotoAndStop(2);
  6. };
  7. replay_bt.onRollOut = function()
  8. {
  9.    this.gotoAndStop(1);
  10. };
  11. replay_bt.onPress = function()
  12. {
  13.    so1.start(0,1);
  14.    gotoAndStop(2);
  15.    getUrl("http://jr.naver.com/game/again.php", "pvchk");
  16. };
  17. replay_bt.onRelease = function()
  18. {
  19.    this.gotoAndStop(1);
  20.    gotoAndStop(2);
  21.    getUrl("http://jr.naver.com/game/again.php", "pvchk");
  22. };
  23. replay_bt.onReleaseOutside = function()
  24. {
  25.    this.gotoAndStop(1);
  26.    gotoAndStop(2);
  27.    getUrl("http://jr.naver.com/game/again.php", "pvchk");
  28. };
  29. ava_dress_applay = function()
  30. {
  31.    var _loc4_ = 0;
  32.    while(_loc4_ < m_name.length)
  33.    {
  34.       var _loc3_ = _root[m_name[_loc4_] + "_dname"].indexOf("_");
  35.       _root.game_ava[m_name[_loc4_] + "_m"].gotoAndStop(parseInt(_root[m_name[_loc4_] + "_dname"].slice(_loc3_ + 1,_loc3_ + 3)) + 2);
  36.       trace(m_name[_loc4_] + "_m" + "  : stop=" + parseInt(_root[m_name[_loc4_] + "_dname"].slice(_loc3_ + 1,_loc3_ + 3) + 2));
  37.       _loc4_ = _loc4_ + 1;
  38.    }
  39.    _loc4_ = 0;
  40.    while(_loc4_ < 12)
  41.    {
  42.       var _loc2_ = 0;
  43.       while(_loc2_ < m_name.length)
  44.       {
  45.          _root[m_name[_loc2_] + "_" + _loc4_].removeMovieClip();
  46.          _loc2_ = _loc2_ + 1;
  47.       }
  48.       _loc4_ = _loc4_ + 1;
  49.    }
  50. };
  51. give_score = function()
  52. {
  53.    so3.start(0,1);
  54.    if(one_dname == "")
  55.    {
  56.       if(up_dname == "" || down_dname == "")
  57.       {
  58.          ending_score.gotoAndStop(4);
  59.       }
  60.       else
  61.       {
  62.          ending_score.gotoAndStop(random(3) + 1);
  63.       }
  64.    }
  65.    else
  66.    {
  67.       ending_score.gotoAndStop(random(3) + 1);
  68.    }
  69.    game_ava.ava_face.gotoAndStop(ending_score._currentframe + 1);
  70.    if(up_dname != "")
  71.    {
  72.       game_ava.underwear_up._visible = false;
  73.    }
  74.    if(down_dname != "")
  75.    {
  76.       game_ava.underwear_down._visible = false;
  77.    }
  78.    if(one_dname != "")
  79.    {
  80.       game_ava.underwear_up._visible = false;
  81.       game_ava.underwear_down._visible = false;
  82.    }
  83. };
  84. give_score();
  85. ava_dress_applay();
  86.